package icasue.tools.sqlhelper.core;

import icasue.reflect.handles.predicate.SureOF;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/10/14 下午4:28
 * @UpdateDate:
 * @Description:
 */
class Sort {
    public String[] fields;
    public String symbol;
    Sort(String[] fields, String symbol){
        SureOF.notNull(symbol,"query sort symbol require not null, usable: [ASC, DESC].");
        SureOF.notNullAll(fields, "query sort '" + symbol + "' fields required not be null.");
        this.fields = fields;
        this.symbol = symbol;
    }
}
